Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixup! topology2: Use SAMPLE_TYPE_MSB_INTEGER for ALH copier #8800

Merged

Conversation

bardliao
Copy link
Collaborator

@bardliao bardliao commented Jan 26, 2024

Some ALH DAI copier missed SAMPLE_TYPE_MSB_INTEGER setting.

@bardliao bardliao requested a review from RanderWang January 26, 2024 02:02
@bardliao bardliao force-pushed the fixup-alh-dai-SAMPLE_TYPE_MSB_INTEGER branch from ccc24f9 to 45548c5 Compare January 26, 2024 03:07
Some ALH DAI copier missed SAMPLE_TYPE_MSB_INTEGER setting.

Signed-off-by: Bard Liao <[email protected]>
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have no functional impact (see inline comment), but +1 to keep consistency with other definitions in the file.

@@ -461,6 +463,8 @@ IncludeByKey.SDW_AMP_FEEDBACK {
out_valid_bit_depth 32
out_ch_cfg $CHANNEL_CONFIG_3_POINT_1
out_ch_map $CHANNEL_MAP_3_POINT_1
out_sample_type $SAMPLE_TYPE_MSB_INTEGER
out_fmt_cfg "$[($out_channels | ($out_valid_bit_depth * 256))]"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have no practical impact given out_valid_bit_depth is 32. The bit-alignment only takes effect when valid-bits is smaller than the container size.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have no practical impact given out_valid_bit_depth is 32. The bit-alignment only takes effect when valid-bits is smaller than the container size.

Right, but it is better to be consistent. Other ALH dais set SAMPLE_TYPE_MSB_INTEGER no matter the valid_bit_depth is 32 bit or not. :)

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bardliao can you followup with some inline topology comments here explaining the logic. We can merge today as this fix unblocks a lot of other tests.

@lgirdwood lgirdwood merged commit 897cee1 into thesofproject:main Jan 26, 2024
39 of 44 checks passed
@bardliao
Copy link
Collaborator Author

@bardliao can you followup with some inline topology comments here explaining the logic. We can merge today as this fix unblocks a lot of other tests.

@lgirdwood Sorry, I didn't get your comment. The PR is a fixup of 2541e55 that is a commit of #8359. The request is that we should set SAMPLE_TYPE_MSB_INTEGER for 24 bit ALH DAIs. It is no impact if we set it for 16 or 32 bit format because the valid bits and the container bits are the same in the cases. However, we set SAMPLE_TYPE_MSB_INTEGER for all ALH DAIs for consistent. PR #7959 may explain more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants